Nevron Open Vision Documentation
Nevron.Nov.UI Namespace / NContinuousMediaExporter<TContent> Class / SaveToStream Method
The stream to save the image to.
The extension of the file format to save in without the dot, for example "png", "jpg", "svg", etc.
Bounding box of the area to be exported.
Resolution of the image in DPI.
Optional image encoder settings.


In This Topic
    SaveToStream Method (NContinuousMediaExporter<TContent>)
    In This Topic
    Exports the specified bounds of the document to an image and saves it to the given stream.
    Syntax
    'Declaration
     
    
    Public MustOverride Sub SaveToStream( _
       ByVal stream As System.IO.Stream, _
       ByVal formatExtension As System.String, _
       ByVal bounds As NRectangle, _
       ByVal dpi As System.Double, _
       Optional ByVal encoderSettings As NImageEncoderSettings _
    ) 
    'Usage
     
    
    Dim instance As NContinuousMediaExporter(Of TContent)
    Dim stream As System.IO.Stream
    Dim formatExtension As System.String
    Dim bounds As NRectangle
    Dim dpi As System.Double
    Dim encoderSettings As NImageEncoderSettings
     
    instance.SaveToStream(stream, formatExtension, bounds, dpi, encoderSettings)
    public abstract void SaveToStream( 
       System.IO.Stream stream,
       System.string formatExtension,
       NRectangle bounds,
       System.double dpi,
       NImageEncoderSettings encoderSettings
    )

    Parameters

    stream
    The stream to save the image to.
    formatExtension
    The extension of the file format to save in without the dot, for example "png", "jpg", "svg", etc.
    bounds
    Bounding box of the area to be exported.
    dpi
    Resolution of the image in DPI.
    encoderSettings
    Optional image encoder settings.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also